package cn.exrick.xboot.common.vo;

import cn.exrick.xboot.modules.base.entity.UserRole;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;


/**
 * @author Exrick
 */
@Data
@Accessors(chain = true)
public class RoleDTO {

    @ApiModelProperty(value = "角色名 以ROLE_开头")
    private String roleName;

    @ApiModelProperty(value = "当前启用状态 0 未启用 ，1 启用")
    private Integer status;

    @ApiModelProperty(value = "仓点id")
    private Long warehouseId;

    public RoleDTO(UserRole userRole){
        this.roleName = userRole.getRoleName();
        this.status = userRole.getStatus();
        this.warehouseId = userRole.getWarehouseId();
    }
}
